using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DataAccessLayer;

public partial class web_Controls_ctrl_vl_left_xkld_details : System.Web.UI.UserControl
{
    Common _common = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        _common = new Common();
        if (Request.Params["id"] != null)
        {
            LoadXKLDDetail(_common.TextFormat(Request.Params["id"].ToString()));
        }
    }
    void LoadXKLDDetail(string id)
    {
        string _sql = "select * from TinTuc_xuat_khau_lao_dong where ma_xkld = '" + id + "'";
        DataSet _ds = _common.ExeceuteDataset(_sql);
        lbl_news_detail_tt.Text = _ds.Tables[0].Rows[0]["tieu_de"].ToString();
        lbl_news_detail_short.Text = _ds.Tables[0].Rows[0]["mo_ta_ngan"].ToString();
        lbl_news_detail_desc.Text = _ds.Tables[0].Rows[0]["noi_dung"].ToString();
        LoadXKLDOther(_ds.Tables[0].Rows[0]["ma_quoc_gia"].ToString());
    }
    void LoadXKLDOther(string ma_quoc_gia)
    {
        string _sql = "select * from TinTuc_xuat_khau_lao_dong where ma_quoc_gia = '" + ma_quoc_gia + "'";
        DataSet _ds = _common.ExeceuteDataset(_sql);
        rpt_news_other.DataSource = _ds;
        rpt_news_other.DataBind();
    }
}
